export const columns2Left1 = [
  {
    width: 120,
    title: '车牌号',
    key: 'carNum'
  },
  {
    width: 120,
    title: '厂牌',
    key: 'carLabel'
  },
  {
    width: 120,
    title: '车牌颜色',
    key: 'carColor'
  },
  {
    width: 120,
    title: '收费车型',
    key: 'carModel'
  },
  {
    width: 120,
    title: '申请人单位',
    key: 'applicantUnit'
  },
  {
    width: 120,
    title: '申请人姓名',
    key: 'applicantName'
  },
  {
    width: 120,
    title: '行驶本登记',
    key: 'carDriveRegist'
  },
  {
    width: 120,
    title: '固定通行站点',
    key: 'carFixedSite'
  },
  {
    width: 120,
    title: '可选通行站点',
    key: 'carChooseSite'
  },
  {
    width: 120,
    title: '业务类型',
    key: 'carBussType'
  },
  {
    width: 120,
    title: '备注',
    key: 'carNote'
  },
  {
    title: '操作',
    key: 'action',
    width: 120,
    align: 'center',
    render: (h, params) => {
      return h('div', [
        h('Button', {
          props: {
            type: 'primary',
            size: 'small'
          },
          style: {
            marginRight: '5px'
          },
          on: {
            click: () => {
              // this.changerClass(params.row, params.index,'ivu-table');
              let upUrl = '/employFreeApply/updateEmployFreeApply'
              this.updateRow(upUrl, params.row)
            }
          }
        }, '确定')
      ]);
    }
  }
]

export const columns2Right1=[
  {
    width: 120,
    title: '车牌号',
    key: 'carNum'
  },
  {
    width: 120,
    title: '厂牌',
    key: 'carLabel'
  },
  {
    width: 120,
    title: '车牌颜色',
    key: 'carColor'
  },
  {
    width: 120,
    title: '收费车型',
    key: 'carModel'
  },
  {
    width: 120,
    title: '申请人单位',
    key: 'applicantUnit'
  },
  {
    width: 120,
    title: '申请人姓名',
    key: 'applicantName'
  },
  {
    width: 120,
    title: '行驶本登记',
    key: 'carDriveRegist'
  },
  {
    width: 120,
    title: '固定通行站点',
    key: 'carFixedSite'
  },
  {
    width: 120,
    title: '可选通行站点',
    key: 'carChooseSite'
  },
  {
    width: 120,
    title: '业务类型',
    key: 'carBussType'
  },
  {
    width: 120,
    title: '备注',
    key: 'carNote'
  }
]


export const columns2Left2 = [
  {
    width: 120,
    title: '车牌号',
    key: 'carNum'
  },
  {
    width: 120,
    title: '厂牌',
    key: 'carLabel'
  },
  {
    width: 120,
    title: '车牌颜色',
    key: 'carColor'
  },
  {
    width: 120,
    title: '收费车型',
    key: 'carModel'
  },
  {
    width: 120,
    title: '申请人单位',
    key: 'applicantUnit'
  },
  {
    width: 120,
    title: '申请人姓名',
    key: 'applicantName'
  },
  {
    width: 120,
    title: '行驶本登记',
    key: 'carDriveRegist'
  },
  {
    width: 120,
    title: '固定通行站点',
    key: 'carFixedSite'
  },
  {
    width: 120,
    title: '可选通行站点',
    key: 'carChooseSite'
  },
  {
    width: 120,
    title: '业务类型',
    key: 'carBussType'
  },
  {
    width: 120,
    title: '备注',
    key: 'carNote'
  },
  {
    title: '操作',
    key: 'action',
    width: 120,
    align: 'center',
    render: (h, params) => {
      return h('div', [
        h('Button', {
          props: {
            type: 'primary',
            size: 'small'
          },
          style: {
            marginRight: '5px'
          },
          on: {
            click: () => {
              // this.changerClass(params.row, params.index,'ivu-table');
              let upUrl = '/employFreeApply/updateEmployFreeApply'
              this.updateRow(upUrl, params.row)
            }
          }
        }, '确定')
      ]);
    }
  }
]

export const columns2Right2=[
  {
    width: 120,
    title: '车牌号',
    key: 'carNum'
  },
  {
    width: 120,
    title: '厂牌',
    key: 'carLabel'
  },
  {
    width: 120,
    title: '车牌颜色',
    key: 'carColor'
  },
  {
    width: 120,
    title: '收费车型',
    key: 'carModel'
  },
  {
    width: 120,
    title: '申请人单位',
    key: 'applicantUnit'
  },
  {
    width: 120,
    title: '申请人姓名',
    key: 'applicantName'
  },
  {
    width: 120,
    title: '行驶本登记',
    key: 'carDriveRegist'
  },
  {
    width: 120,
    title: '固定通行站点',
    key: 'carFixedSite'
  },
  {
    width: 120,
    title: '可选通行站点',
    key: 'carChooseSite'
  },
  {
    width: 120,
    title: '业务类型',
    key: 'carBussType'
  },
  {
    width: 120,
    title: '备注',
    key: 'carNote'
  }
]

export const columns1Right2 = [
  {
    width: 120,
    title: '车牌号',
    key: 'carNum'
  },
  {
    width: 120,
    title: '厂牌',
    key: 'carLabel'
  },
  {
    width: 120,
    title: '车牌颜色',
    key: 'carColor'
  },
  {
    width: 120,
    title: '收费车型',
    key: 'carModel'
  },
  {
    width: 120,
    title: '申请人单位',
    key: 'applicantUnit'
  },
  {
    width: 120,
    title: '申请人姓名',
    key: 'applicantName'
  },
  {
    width: 120,
    title: '行驶本登记',
    key: 'carDriveRegist'
  },
  {
    width: 120,
    title: '固定通行站点',
    key: 'carFixedSite'
  },
  {
    width: 120,
    title: '业务类型',
    key: 'carBussType'
  },
  {
    width: 120,
    title: '备注',
    key: 'carNote'
  },
]

export const columns1Right1 =  [
  {
    width: 120,
    title: '车牌号',
    key: 'carNum'
  },
  {
    width: 120,
    title: '厂牌',
    key: 'carLabel'
  },
  {
    width: 120,
    title: '车牌颜色',
    key: 'carColor'
  },
  {
    width: 120,
    title: '收费车型',
    key: 'carModel'
  },
  {
    width: 120,
    title: '申请单位',
    key: 'carApplyUnit'
  },
  {
    width: 120,
    title: '行驶本登记',
    key: 'carDriveUnit'
  },
  {
    width: 120,
    title: '通行区间',
    key: 'carPassInterval'
  },
  {
    width: 120,
    title: '业务类型',
    key: 'carBussType'
  },
  {
    width: 120,
    title: '备注',
    key: 'carNote'
  },
]
/*
"applyId": 27,
"typeCode": "1",
"applyUnit": "北京首都高速公路发展有限公司",
"carNum": "京N123475",
"carLabel": "20",
"carColor": "白色",
"carModel": "帕萨特",
"companyId": null,
"timeStamp": "2019-06-19T23:41:35",
"buildVersion": 222,
"carBussType": "取消",
"applyIdOld": 3,
"typeCodeOld": "1",
"applyUnitOld": "北京首都高速公路发展有限公司",
"carNumOld": "京N123475",
"carLabelOld": "20",
"carColorOld": "白色",
"carModelOld": "帕萨特",
"companyIdOld": null,
"timeStampOld": "2019-06-18T23:10:10",
"buildVersionOld": 111,
"carBussTypeOld": "新增"

titleName = "集团公司养护生产车辆免费通行批准明细单（路网）";
            } else if (productFreeApply.getCarType() == 2) {
                titleName = "集团公司养护生产、生活管理车辆免费通行批准明细单（路网）";
            } else if (productFreeApply.getCarType() == 3) {
                titleName = "集团公司养护生产车辆免费通行批准明细单（区间）";
            } else if (productFreeApply.getCarType() == 4) {
                titleName = "集团公司养护生产、生活管理车辆免费通行批准明细单（区间）";
 */
export const detailColumns =  [
  {
    width: 120,
    title: '类型',
    key: 'typeCode',
    render: (h, params) => {
      switch (params.row.typeCode) {
        case '1':
          return h('span', '集团公司养护生产车辆免费通行批准明细单（路网）');
          break;
        case '2':
          return h('span', '集团公司养护生产、生活管理车辆免费通行批准明细单（路网）');
          break;
        case '3':
          return h('span', '集团公司养护生产车辆免费通行批准明细单（区间）');
          break;
        case '4':
          return h('span', '集团公司养护生产、生活管理车辆免费通行批准明细单（区间）');
          break;
        case '5':
          return h('span', '"集团公司员工通勤车辆免费通行批准明细单（区间）');
          break;
        case defaultStatus:
          return h('span', defaultStatus);
          break;
      }
    }
  },
  {
    width: 120,
    title: '上次版本-单位',
    key: 'applyUnitOld',
    className: 'old-detail-style'
  },
  {
    width: 120,
    title: '上次版本-车牌号',
    key: 'carNumOld',
    className: 'old-detail-style'
  },
  {
    width: 120,
    title: '上次版本-厂牌',
    key: 'carLabelOld',
    className: 'old-detail-style'
  },
  {
    width: 120,
    title: '上次版本-车牌颜色',
    key: 'carColorOld',
    className: 'old-detail-style'
  },
  {
    width: 120,
    title: '上次版本-车型',
    key: 'carModelOld',
    className: 'old-detail-style'
  },
  {
    width: 120,
    title: '上次版本-版本号',
    key: 'buildVersionOld',
    className: 'old-detail-style'
  },
  {
    width: 120,
    title: '上次版本-业务类型',
    key: 'carBussTypeOld',
    className: 'old-detail-style'
  },

  {
    width: 120,
    title: '最新版本-单位',
    key: 'applyUnit',
    className: 'new-detail-style'
  },
  {
    width: 120,
    title: '最新版本-车牌号',
    key: 'carNum',
    className: 'new-detail-style'
  },
  {
    width: 120,
    title: '最新版本-厂牌',
    key: 'carLabel',
    className: 'new-detail-style'
  },
  {
    width: 120,
    title: '最新版本-车牌颜色',
    key: 'carColor',
    className: 'new-detail-style'
  },
  {
    width: 120,
    title: '最新版本-车型',
    key: 'carModel',
    className: 'new-detail-style'
  },
  {
    width: 120,
    title: '最新版本-版本号',
    key: 'buildVersion',
    className: 'new-detail-style'
  },
  {
    width: 120,
    title: '最新版本-业务类型',
    key: 'carBussType',
    className: 'new-detail-style'
  }
]
